﻿/****************************** Module Header ******************************\
 * Module Name:  ExDbType.cs
 * Module Version:  1.0.0 (2013-2-16)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This class is used to make a safely sql command.
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/
using System.Linq;
using System.Data;

namespace UCL.Data
{
    public static class ExDbType
    {
        public static bool IsType(this DbType t,params DbType[] types)
        {
            return types.Contains(t);
        }
    }
}
